//
//  CDVisitorView.swift
//  chendong微博
//
//  Created by chen dong on 2021/3/31.
//

import UIKit

class CDVisitorView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    //使用字典设置视图信息
    func setUIInfo(dict: [String : String]) {
        
    }
    
    //旋转图标动画
    private func startAnimation() {
        let anim = CABasicAnimation(keyPath:"")
        anim.toValue = 2 * M_PI
        anim.repeatCount = MAXFLOAT
        anim.duration = 15
        
        //动画完成不删除，如果视图被释放，动画会一起销毁
        anim.isRemovedOnCompletion = false
        
        //将动画添加到视图
        self.layer.add(anim, forKey: nil)
        
        
    }
    

    
    
    
    
}

extension CDVisitorView{
    
    func setUpUI() {
        backgroundColor = UIColor.white
        
        
        
    }
    
    
}



